package com.foo.designpattern.factory.abstractfactorypattern;

/**
 * com.foo.designpattern.factory.abstractfactorypattern
 * Created with IntelliJ IDEA.
 * User: wangyuxi
 * DateTime: 2016/4/1721:38
 *
 * @desc
 */
public class Factory implements IFactory {
    @Override
    public IProduct1 createProduct1() {
        return new Product1();
    }

    @Override
    public IProduct2 createProduct2() {
        return new Product2();
    }
}
